
package system.base;

import framework.core.*;

/*
	Author    :Wing
	CreateTime:2008-02-04 10:45:45
*/
public class MenuSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_name = "" ; // all

	private int m_display_order = Value.NULL_INT ; // all
		

public MenuSearchEvent() 
{
	super();
	
	setOrderField(Menu.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getName()
	{
		return m_name ;
	}
	public void setName(String v)
	{
		m_name = v;
	}

	public int getDisplayOrder()
	{
		return m_display_order ;
	}
	public void setDisplayOrder(int v)
	{
		m_display_order = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewName() throws Exception
	{
		return Value.view(getName());
	}

	public String viewDisplayOrder() throws Exception
	{
		return Value.view(getDisplayOrder());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(Menu.ID,getId()));

	c.add(getCondition(Menu.NAME,getName()));

	c.add(getCondition(Menu.DISPLAY_ORDER,getDisplayOrder()));
		

			
		return c ;
	}
	
//add by Wing start

//add by Wing end
}
